DISCUSSION
This function receives a message from the specified message queue. If no messages are currently available, the timeout specifies how long the function should wait for one. Tasks waiting on the queue are handled in a first in, first out manner; that is, the first task to wait on the queue receives the message from the
MPNotifyQueue
call.
After calling this function, when a message appears, it is removed from the queue and the three fields,
param1
,
param2
, and
param3
are set to the values specified by the message text. Note these parameters are pointers to variables to be set with the message text.
If you call this function from a cooperative task, you should specify only
kDurationImmediate
for the timeout length; other waits will cause the task to block.